@extends('console.common.framework') 
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h3 class="page-header">反馈管理</h3>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="row">
    <div class="col-lg-12">
        <h4>反馈列表</h4>
        <div class="panel panel-default">
            <div class="panel-heading">
                <form action="">
                    <ul class="nav nav-tabs">
                        <li>
                            <input type="text" name="api_id" class="form-control" placeholder="接口id">
                        </li>
                        <li>
                            <input type="submit" class="btn btn-primary sumbit" value="提交">
                        </li>
                    </ul>
                </form>
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-hover" id="menu-table">
                        <thead>
                            <tr>
                                <th class="col-lg-1">id</th>
                                <th class="col-lg-1">接口名称</th>
                                <th class="col-lg-1">联系邮箱</th>
                                <th class="col-lg-1">联系QQ</th>
                                <th class="col-lg-1">联系电话</th>
                                <th class="col-lg-1">反馈内容</th>
                                <th class="col-lg-2">回答</th>
                                <th class="col-lg-2">反馈时间</th>
                                <th class="col-lg-2">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach($list as $li)
                            <tr>
                                <td>{{$li['id']}}</td>
                                <td>{{$li['api_title']}}</td>
                                <td>{{$li['email']}}</td>
                                <td>{{$li['qq']}}</td>
                                <td>{{$li['tel']}}</td>
                                <td>{{$li['question']}}</td>
                                <td>{{$li['answer']}}</td>
                                <td>{{$li['create_time']}}</td>
                                <td>
                                <span class="fa fa-fw fa-edit edit-span fa-action" title="修改" data-toggle="modal" data-target="#issue-edit-modal" data-id="{{$li['id']}}" data-api_title="{{ $li['api_title'] }}" data-email="{{ $li['email'] }}"
                                data-status="{{$li['status']}}" data-qq="{{$li['qq']}}" data-tel="{{$li['tel']}}"   data-question="{{$li['question']}}" data-answer="{{$li['answer']}}"></span>
                                        <span class="fa fa-fw fa-trash-o del-span fa-action" title="删除"  data-id="{{$li['id']}}"></span>
                                    </td>
                            </tr>
                            @endforeach
                            <tr>
                                <td colspan="6" class="page-nav">{{$list->appends($params)->links()}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <!-- /.table-responsive -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
</div>
<div>
    <div class="modal fade" id="issue-edit-modal" tabindex="-1" role="dialog" aria-labelledby="editModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="editModalLabel">反馈处理</h4>
                </div>
                <div class="modal-body" style="padding:30px;">
                    <div class="row">
                        <div class="col-lg-12">
                            <form role="form" id="issue-edit-form">
                                {{ csrf_field() }}
                                <input type="hidden" name="id" value="">
                                <div class="form-group">
                                    <label>接口名称</label>
                                    <input class="form-control api_title" type="text" disabled >
                                </div>
                                <div class="form-group">
                                    <label>反馈者联系邮箱</label>
                                    <input class="form-control email" type="text" disabled>
                                </div>
                                <div class="form-group">
                                    <label>反馈者联系QQ</label>
                                    <input class="form-control qq" tpye="text" disabled>
                                </div>
                                <div class="form-group">
                                    <label>反馈者联系电话</label>
                                    <input class="form-control tel" type="text" disabled>
                                </div>
                                <div class="form-group">
                                    <label>反馈问题</label>
                                    <textarea class="form-control question" type="text" disabled></textarea>
                                </div>
                                <div class="form-group">
                                    <label>回答</label>
                                    <textarea class="form-control answer" name="answer" rows="6"></textarea>
                                </div>
                            </form>
                        </div>
                        <!-- /.col-lg-6 (nested) -->
                        <!-- /.col-lg-6 (nested) -->
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="reset" class="btn btn-default" data-dismiss="modal" id="menu-edit-reset">关闭</button>
                    <button type="button" class="btn btn-primary submit" id="menu-edit-submit">提交</button>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
@section('scripts')
<script src="{{ env('APP_STATIC') }}console/js/issue.js"></script>
@endsection